//添加一个插件被安装的监听
chrome.runtime.onInstalled.addListener(async () => {
	console.log('挂载完成', chrome)
	//获取插件运行时popup.html的路径
	// let url = chrome.runtime.getURL("popup.html");
	//创建一个tab页
	// let tab = await chrome.tabs.create({ url });
	//打印当前tab页的id
	// console.log(`Created tab ${tab.id}`);
});

// chrome.action.onClicked.addListener(async () => {
//     console.log('点击了插件图标');
// });
